﻿using System;
using System.Collections.Generic;

namespace Models
{
    /// <summary>
    /// 付款申请主表
    /// </summary>
    public class PurchasePayApplyHead
    {
        /// <summary>
        /// 主键
        /// </summary>
        public decimal ID { get; set; }

        /// <summary>
        /// 付款申请编号
        /// </summary>
        public string PPA_Number { get; set; }

        /// <summary>
        /// 申请时间
        /// </summary>
        public DateTime PPA_Date { get; set; }

        /// <summary>
        /// 申请人员
        /// </summary>
        public string PPA_Person { get; set; }

        /// <summary>
        /// 所属公司ID
        /// </summary>
        public int PPA_CompanyId { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        public string PPA_CompanyName { get; set; }

        /// <summary>
        /// 部门ID
        /// </summary>
        public int PPA_DeptId { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        public string PPA_DeptName { get; set; }

        /// <summary>
        /// 供应商ID
        /// </summary>
        public int PPA_SupplierId { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string PPA_SupplierName { get; set; }

        /// <summary>
        /// 付款银行
        /// </summary>
        public string PPA_Bank { get; set; }

        /// <summary>
        /// 银行账号
        /// </summary>
        public string PPA_BankNumber { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string PPA_Remark { get; set; }

        /// <summary>
        /// 审核状态（0：审批中；1：已审批；2：暂存）
        /// </summary>
        public int PPA_AuditStatus { get; set; }

        /// <summary>
        /// 付款总额
        /// </summary>
        public decimal PPA_PayAmount { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public int IsDelete { get; set; }

        /// <summary>
        /// 相关文件
        /// </summary>
        public List<FileData> FileList { get; set; }

        /// <summary>
        /// 子表集合
        /// </summary>
        public List<PurchasePayApplyBody> ItemList { get; set; }

        public PurchasePayApplyHead()
        {
            PPA_Remark = "";
            IsDelete = 0;
            FileList = new List<FileData>();
            ItemList = new List<PurchasePayApplyBody>();
        }

    }
}
